package org.codert.jpa.domain.person;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.codert.jpa.domain.AbstractEntity;
import org.codert.jpa.domain.order.Order;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import java.util.List;

/**
 * @author: TanJingyu
 * @create: 2021-08-20 10:10
 **/
@Entity
@Access(AccessType.FIELD)
@Getter
@Setter
@Accessors(chain = true)
public class User extends AbstractEntity<Long> {
    private String username;
    private Integer age;

//    @OneToMany
//    private List<Order> orders;
}
